package com.yzjs.wx.request;



import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(
        name = "xml",
        strict = false
)
public class WxOrderQueryRequest {
    @Element(
            name = "appid"
    )
    private String appid;
    @Element(
            name = "mch_id"
    )
    private String mchId;
    @Element(
            name = "transaction_id",
            required = false
    )
    private String transactionId;
    @Element(
            name = "out_trade_no",
            required = false
    )
    private String outTradeNo;
    @Element(
            name = "nonce_str"
    )
    private String nonceStr;
    @Element(
            name = "sign"
    )
    private String sign;
    @Element(
            name = "sign_type",
            required = false
    )
    private String signType;

    public WxOrderQueryRequest() {
    }

    public String getAppid() {
        return this.appid;
    }

    public String getMchId() {
        return this.mchId;
    }

    public String getTransactionId() {
        return this.transactionId;
    }

    public String getOutTradeNo() {
        return this.outTradeNo;
    }

    public String getNonceStr() {
        return this.nonceStr;
    }

    public String getSign() {
        return this.sign;
    }

    public String getSignType() {
        return this.signType;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WxOrderQueryRequest)) {
            return false;
        } else {
            WxOrderQueryRequest other = (WxOrderQueryRequest)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label95: {
                    Object this$appid = this.getAppid();
                    Object other$appid = other.getAppid();
                    if (this$appid == null) {
                        if (other$appid == null) {
                            break label95;
                        }
                    } else if (this$appid.equals(other$appid)) {
                        break label95;
                    }

                    return false;
                }

                Object this$mchId = this.getMchId();
                Object other$mchId = other.getMchId();
                if (this$mchId == null) {
                    if (other$mchId != null) {
                        return false;
                    }
                } else if (!this$mchId.equals(other$mchId)) {
                    return false;
                }

                Object this$transactionId = this.getTransactionId();
                Object other$transactionId = other.getTransactionId();
                if (this$transactionId == null) {
                    if (other$transactionId != null) {
                        return false;
                    }
                } else if (!this$transactionId.equals(other$transactionId)) {
                    return false;
                }

                label74: {
                    Object this$outTradeNo = this.getOutTradeNo();
                    Object other$outTradeNo = other.getOutTradeNo();
                    if (this$outTradeNo == null) {
                        if (other$outTradeNo == null) {
                            break label74;
                        }
                    } else if (this$outTradeNo.equals(other$outTradeNo)) {
                        break label74;
                    }

                    return false;
                }

                label67: {
                    Object this$nonceStr = this.getNonceStr();
                    Object other$nonceStr = other.getNonceStr();
                    if (this$nonceStr == null) {
                        if (other$nonceStr == null) {
                            break label67;
                        }
                    } else if (this$nonceStr.equals(other$nonceStr)) {
                        break label67;
                    }

                    return false;
                }

                Object this$sign = this.getSign();
                Object other$sign = other.getSign();
                if (this$sign == null) {
                    if (other$sign != null) {
                        return false;
                    }
                } else if (!this$sign.equals(other$sign)) {
                    return false;
                }

                Object this$signType = this.getSignType();
                Object other$signType = other.getSignType();
                if (this$signType == null) {
                    if (other$signType != null) {
                        return false;
                    }
                } else if (!this$signType.equals(other$signType)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WxOrderQueryRequest;
    }



    public String toString() {
        return "WxOrderQueryRequest(appid=" + this.getAppid() + ", mchId=" + this.getMchId() + ", transactionId=" + this.getTransactionId() + ", outTradeNo=" + this.getOutTradeNo() + ", nonceStr=" + this.getNonceStr() + ", sign=" + this.getSign() + ", signType=" + this.getSignType() + ")";
    }
}

